#ifndef _FIREWALL_CONFIG_H_
#define _FIREWALL_CONFIG_H_

#include <stdbool.h>
#include "main.h"

typedef struct cf
{
    u32 num;
    time_t timestamp;
    char type;
    int mode;
} ConfigInfo;

bool refreshIPCfg(void);

int checkBanned(int, Package*, Package*);

void configByFlow(int, const Package*);

void staticIPConfig(void);

void staticPortConfig(void);

void protocolConfig(void);

#endif